package com.hejia.alauda.entity;

import java.math.BigDecimal;

import javax.persistence.Column;

public class Presell extends BaseEntity {
	private static final long serialVersionUID = 1L;

	@Column
	private Product.Category category; // 产品类别

	@Column
	private String name;// 产品名称

	@Column
	private Integer term;// 产品期限

	@Column
	private BigDecimal totalAmount; // 总金额

	@Column
	private FinancialAsset financialAsset; // 金融资产

	@Column
	private ProductType producttype;// 产品分类

	@Column
	private String activitys;// 活动ID集合

	@Column
	private Boolean publish;// 是否发布了

	@Column
	private Boolean rookie; // 是否新手标

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Product.Category getCategory() {
		return category;
	}

	public void setCategory(Product.Category category) {
		this.category = category;
	}

	public String getCategoryName() {
		if (this.category == null) {
			return "未知";
		}
		return this.category.getName();
	}

	public BigDecimal getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(BigDecimal totalAmount) {
		this.totalAmount = totalAmount;
	}

	public FinancialAsset getFinancialAsset() {
		return financialAsset;
	}

	public void setFinancialAsset(FinancialAsset financialAsset) {
		this.financialAsset = financialAsset;
	}

	public ProductType getProducttype() {
		return producttype;
	}

	public void setProducttype(ProductType producttype) {
		this.producttype = producttype;
	}

	public String getActivitys() {
		return activitys;
	}

	public void setActivitys(String activitys) {
		this.activitys = activitys;
	}

	public Boolean getPublish() {
		return publish;
	}

	public void setPublish(Boolean publish) {
		this.publish = publish;
	}

	public Boolean getRookie() {
		return rookie;
	}

	public void setRookie(Boolean rookie) {
		this.rookie = rookie;
	}

	public Integer getTerm() {
		return term;
	}

	public void setTerm(Integer term) {
		this.term = term;
	}

}
